package com.jieao.template.entity.accountMgr;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 首页左侧菜单显示
 *
 * @author 姜兆伟
 * @className AdminMenuVO
 * @date 2019-09-20 22:19
 */
@Data
public class AdminMenuVO implements Serializable
{
    private static final long serialVersionUID = -3654936983642421356L;

    /**
     * 菜单id
     */
    @JsonProperty("index")
    private String permissionId;

    /**
     * 菜单名
     */
    @JsonProperty("name")
    private String permissionLabel;

    /**
     * 菜单url
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @JsonProperty("path")
    private String permissionUrl;

    /**
     * 子菜单列表
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @JsonProperty("children")
    private List<AdminMenuVO> subMenu;

    /**
     * 子菜单图标
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @JsonProperty("icon")
    private String permissionDescription;

}
